import request from "../utils/request"

export function getuser() {
    return request({
        url: "/api/getuser",
    })
}

export function adduser(data) {
    return request({
        url: "/api/adduser",
        method: 'POST',
        data
    })
}

export function edituser(data) {
    return request({
        url: "/api/edituser",
        method: 'PUT',
        data
    })
}

export function deluser(id) {
    return request({
        url: "/api/deluser",
        method: "DELETE",
        params: { id }
    })
}

